package com.pro.controller;

import com.pro.entry.JsActicleCategroy;
import com.pro.service.JsActicleCategroyService;
import com.pro.utils.JsonData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * ClassName:JsActicleCategroyController
 * Package:com.pro.controller
 * Description:
 *
 * @Date:2022/4/8 8:45
 * @Author: ZPT
 */
@RestController
@RequestMapping("/acticleCategroy")
public class JsActicleCategroyController {
    @Autowired
    private JsActicleCategroyService categroyService;
    /**
     * @author ZPT
     * @content :微圈分类列表
     */
    @RequestMapping("/getActicleCategroy")
    public JsonData getActicleCategroy(){
        List<JsActicleCategroy> acticleCategroyList = categroyService.getActicleCategroy();
        return acticleCategroyList!=null?JsonData.buildSuccess(acticleCategroyList):JsonData.buildError("服务端错误");
    }
}
